package org.zasadnyy.redlions.players.shared.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

public class PlayerItem implements Serializable {

	private static final long serialVersionUID = -991010785562630232L;

	public static final String ID = "id";
	public static final String NAME = "name";
	public static final String SURNAME = "surname";
	public static final String PHOTO_URL = "photoUrl";
	public static final String NATIVE_CITY = "nativeCity";
	public static final String BIRTHDAY = "birtday";
	public static final String PLAYS_FROM = "playsFrom";
	public static final String TOURNAMENTS = "tournaments";

	private String id;

	private String name;

	private String surname;

	private String photoUrl;

	private String nativeCity;

	private Date birtday;

	private Date playsFrom;

	private Map<Integer, List<TournamentItem>> tournaments;

	public PlayerItem() {
	}

	public PlayerItem(String name, String surname, String photoUrl,
			String nativeCity, Date birtday, Date playsFrom,
			Map<Integer, List<TournamentItem>> tournaments) {
		super();
		this.name = name;
		this.surname = surname;
		this.photoUrl = photoUrl;
		this.nativeCity = nativeCity;
		this.birtday = birtday;
		this.playsFrom = playsFrom;
		this.tournaments = tournaments;
	}

	public PlayerItem(String id, String name, String surname, String photoUrl,
			String nativeCity, Date birtday, Date playsFrom,
			Map<Integer, List<TournamentItem>> tournaments) {
		super();
		this.id = id;
		this.name = name;
		this.surname = surname;
		this.photoUrl = photoUrl;
		this.nativeCity = nativeCity;
		this.birtday = birtday;
		this.playsFrom = playsFrom;
		this.tournaments = tournaments;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	public String getSurname() {
		return surname;
	}

	public void setPhotoUrl(String photoUrl) {
		this.photoUrl = photoUrl;
	}

	public String getPhotoUrl() {
		return photoUrl;
	}

	public String getNativeCity() {
		return nativeCity;
	}

	public void setNativeCity(String nativeCity) {
		this.nativeCity = nativeCity;
	}

	public Date getBirtday() {
		return birtday;
	}

	public void setBirtday(Date birtday) {
		this.birtday = birtday;
	}

	public Date getPlaysFrom() {
		return playsFrom;
	}

	public void setPlaysFrom(Date playsFrom) {
		this.playsFrom = playsFrom;
	}

	public Map<Integer, List<TournamentItem>> getTournaments() {
		return tournaments;
	}

	public void setTournaments(Map<Integer, List<TournamentItem>> tournaments) {
		this.tournaments = tournaments;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Player [id=").append(id).append(", nativeCity=")
				.append(nativeCity).append(", birtday=").append(birtday)
				.append(", playsFrom=").append(playsFrom)
				.append(", tournaments=").append(tournaments).append("]");
		return builder.toString();
	}
}
